import { createRouter, createWebHistory } from "vue-router";
import LoginPage from "../views/login/LoginPage.vue";
import LoginPage1 from "../views/login/LoginPage1.vue";
import LoginPage2 from "../views/login/LoginPage2.vue";

import console from "@/router/cosole";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "LoginPage",
      // redirect: { path: '/mcenter/api/v1/token/1' },
      component: LoginPage,
    },
    {
      // 示例：将特定路径重定向到后端
      path: "/test",
      name: "home",
      // redirect: { path: '/mcenter/api/v1/token/1' }
      component: LoginPage1,
    },
    {
      // 示例：将特定路径重定向到后端
      path: "/home",
      name: "home1",
      // redirect: { path: '/mcenter/api/v1/token/1' }
      component: LoginPage2,
    },
    //console home
    console,
  ],
});

export default router;
